
var tt = setInterval(function(){
    var Daye = new Date();
    var MDaye = new Date("2019-09-05 18:00");
    var seconds = MDaye.getTime() - Daye.getTime();



    var n1 = Math.floor(seconds / 1000 / 60 / 60 % 24);
    var n2 = Math.floor(seconds / 1000 / 60 % 60);
    var n3 = Math.floor(seconds / 1000 % 60);



    if(n1 < 10){
        n1 = "0" + n1;
    }
    if(n2 < 10){
        n2 = "0" + n2;
    }
    if(n3 < 10){
        n3 = "0" + n3;
    }

    document.querySelector("#h").innerHTML = n1;
    document.querySelector("#m").innerHTML = n2;
    document.querySelector("#s").innerHTML = n3;

    if (seconds == 0){
        clearInterval(tt);
    }

});
